from_text

pure static function from_text(value: text): decimal

Parse a signed base-10 text representation of a real number.

If the encoded value has more decimal places than are supported, it is rounded to the nearest supported value.

Since

0.9.1

Parameters

value

the text to parse

Throws

exception

when

  • the text representation is ill-formed

  • the magnitude of the encoded value is larger than decimal.MAX_VALUE